package io.sdl.common.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 消息已读状态表
 * 
 * @author Dchen
 * @email 1211734836@qq.com
 * @date 2025-05-12 09:29:35
 */
@Data
@TableName("sdl_message_read_status")
public class SdlMessageReadStatusEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;
	/**
	 * 消息/评论ID
	 */
	private Long messageId;
	/**
	 * 消息类型: 1-评论 2-聊天消息
	 */
	private Integer messageType;
	/**
	 * 接收者用户ID
	 */
	private Long receiverId;
	/**
	 * 是否已读
	 */
	private Integer isRead;
	/**
	 * 阅读时间
	 */
	private Date readTime;
	/**
	 * 创建时间
	 */
	private Date createdAt;
	/**
	 * 更新时间
	 */
	private Date updatedAt;

}
